cmake_minimum_required(VERSION 3.8)
project(dir_prop_define)

get_property(var1 DIRECTORY PROPERTY my_dir_prop DEFINED)
message(STATUS "my_dir_prop is defined? = ${var1}")

define_property(DIRECTORY PROPERTY my_dir_prop BRIEF_DOCS "dir docs" FULL_DOCS "dir full docs")

get_property(var2 DIRECTORY PROPERTY my_dir_prop DEFINED)
message(STATUS "my_dir_prop is defined? = ${var2}")

define_property(DIRECTORY PROPERTY my_dir_prop2 INHERITED BRIEF_DOCS "doc 1" FULL_DOCS "doc 2")
get_property(var3 DIRECTORY PROPERTY my_dir_prop2 DEFINED)
message(STATUS "my_dir_prop2 is defined? = ${var3}")
